/**
 *  Serponix is an arcade game in focus to multiplayer based on the classic game Snake.
 *  Copyright (C) 2010 - 2011  Daniel Vala
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License,
 *  or  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  If you have any question do not hesitate to contact author
 *  on e-mail address: danielvala42@gmail.com
 */
package com.serponix.game.objektyNaPlose;

import com.serponix.game.Consts;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Panel;
import java.awt.Toolkit;

/**
 * @author Daniel Vala
 */
public class Zed extends VecNaPolicku {

	private static final Image textura = Toolkit.getDefaultToolkit().getImage(Panel.class.
			getResource("/images/wall.jpg"));

	public Zed(int x, int y) {
		super(x, y);
	}

	public static void paint(Graphics g, int x, int y) {
		x *= Consts.SIZE_OF_BOX;
		y *= Consts.SIZE_OF_BOX;
		g.drawImage(textura, x, y, Consts.SIZE_OF_BOX, Consts.SIZE_OF_BOX, null);
	}

	public void draw(Graphics g) {
		paint(g, getX(), getY());
	}
}
